<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
</head>
<body>
	<script>
		// 对象合并是会覆盖的
		// let obj1 = {a:1, b:2, c:3, y: 90}
		// let obj2 = {a:1, b:2, c:3, x: 100}
		// {a:1, b:2, c:3, y: 90 ,x: 100}
		// let res = {...obj1, ...obj2} 
		// console.log(res);
		// 数组合并是返回一个合并后的新数组，
		let arr1 = [1, 2, 3]
		let arr2 = [1, 2 , 3, 4]
		let res2 = [...arr1, ...arr2]
		console.log(res2);
	</script>
</body>
</html>